package testcasegenerator;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

import org.eclipse.emf.ecore.impl.EPackageImpl;


import spec.ocl_mcg.OCLTree;
import spec.ocl_mcg.OCLparser;
import testcasegenerator.clp.methodlevel.TestCase;

public class TestMethodCase {

	private String methodName;
	private List<TestCase> testcaseList= new ArrayList<TestCase>();
	private String preName;
	private String postName; // no
	//private List<String> parameter_list; 
	
	public TestMethodCase(String methodname) {
		this.methodName = methodname;
	}
	
	public void addTestCase(TestCase tc){
		testcaseList.add(tc);
	}
	
	public String getPreName() {
		return preName;
	}

	public void setPreName(String preName) {
		this.preName = preName;
	}

	public String getPostName() {
		return postName;
	}

	public void setPostName(String postName) {
		this.postName = postName;
	}

	public void setMethodName(String methodName) {
		this.methodName = methodName;
	}

	public void setTestcaseList(ArrayList<TestCase> testcaseList) {
		this.testcaseList = testcaseList;
	}

	public String getMethodName() {
		return methodName;
	}

	public List<TestCase> getTestcaseList() {
		return testcaseList;
	}
	
	public String toString(){
		String result = "Test Suite:\n";
		result += "\tmethodname: " + methodName;
		result += "\n\tprename: " + preName;
		result += "\n\tpostname: " + postName;
		
		for(TestCase tc : testcaseList){
			result += tc.toString() + "\n";
		}
		
		return result;
	}

}


